package com.laiketui.order.api.dto.pay;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
@ToString
public class BalanceRecordDTO implements Serializable {

    private Long id;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * {@link com.laiketui.order.api.enums.BalanceRecordTypeEnum}
     * 类型 1冻结 2解冻 3扣除 4 充值
     */
    private Integer recordType;

    /**
     * 扣除金额
     */
    private BigDecimal recordAmount;
    /**
     * 类型说明
     */
    private String recordContent;

    /**
     * 创建人
     */
    private String careatBy;

    /**
     * 创建时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creatTime;

    /**
     * 商城ID
     */
    private Integer storeId;

    /**
     * 关联母订单号
     */
    private String orderParentNo;

    /**
     * 关联第三方单号
     */
    private String payOrderNo;

    private static final long serialVersionUID = 1L;
}
